This file contains a brief description for replicating the results from the article:

Sergiu Lipcean and Fernando Casal Bértoa "Do Political Finance Reforms Really Reduce Corruption? A Replication Study"
Forthcoming in Research & Politics

It contains instructions regarding the data, codebook, R scripts and R session information required for replication. For additional clarifications, please contact me via https://sergiulipcean.eu/


1) Data 

The 'pfsi_data.rds' is the original data set used in the Hummel et al. (2021) study to which we added several new variables or transformed and recoded a few existing ones for the purpose of our replication study. 

2) Codebook

The '02_Codebook.pdf' provides the definition and description of selected variables and their original sources. As explained in the codebook, we provide this description only for those variables that we used in our analyses, were transformed from existing ones or added from external sources. 

3) R Scripts

The '03_Replication_main.R' provides the R code to replicate the results in the article: Figures 1-4.
 
The '04_Replication_appendix.R', provides the R code to replicate the results in the online appendix:

Appendix A: Figures A1-A2, Tables A1-A3
Appendix B: Tables B1-B8
Appendix C: Tables C1-C8
Appendix D: Tables D1-D3
Appendix E: Figures E1-E6
Appendix F: Figures F1-F2

R Session Info

sessionInfo()
R version 4.4.0 (2024-04-24 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 10 x64 (build 19045)

Matrix products: default

locale:
[1] LC_COLLATE=English_United Kingdom.utf8 
[2] LC_CTYPE=English_United Kingdom.utf8   
[3] LC_MONETARY=English_United Kingdom.utf8
[4] LC_NUMERIC=C                           
[5] LC_TIME=English_United Kingdom.utf8    

time zone: Europe/Warsaw
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] NatParksPalettes_0.2.0 kableExtra_1.4.0       scales_1.3.0          
 [4] patchwork_1.2.0        marginaleffects_0.19.0 modelsummary_2.0.0    
 [7] broom_1.0.5            fixest_0.12.0          lubridate_1.9.3       
[10] forcats_1.0.0          stringr_1.5.1          dplyr_1.1.4           
[13] purrr_1.0.2            readr_2.1.5            tidyr_1.3.1           
[16] tibble_3.2.1           ggplot2_3.5.1          tidyverse_2.0.0       

loaded via a namespace (and not attached):
 [1] gtable_0.3.5        xfun_0.48           insight_0.19.10    
 [4] lattice_0.22-6      tzdb_0.4.0          numDeriv_2016.8-1.1
 [7] vctrs_0.6.5         tools_4.4.0         generics_0.1.3     
[10] sandwich_3.1-0      fansi_1.0.6         pkgconfig_2.0.3    
[13] data.table_1.15.4   stringmagic_1.1.2   lifecycle_1.0.4    
[16] compiler_4.4.0      munsell_0.5.1       htmltools_0.5.8.1  
[19] Formula_1.2-5       pillar_1.9.0        nlme_3.1-164       
[22] tidyselect_1.2.1    digest_0.6.35       mvtnorm_1.2-4      
[25] stringi_1.8.3       fastmap_1.1.1       grid_4.4.0         
[28] colorspace_2.1-0    cli_3.6.2           magrittr_2.0.3     
[31] utf8_1.2.4          withr_3.0.1         dreamerr_1.4.0     
[34] backports_1.4.1     estimability_1.5    timechange_0.3.0   
[37] rmarkdown_2.28      emmeans_1.10.1      zoo_1.8-12         
[40] hms_1.1.3           coda_0.19-4.1       evaluate_1.0.1     
[43] knitr_1.48          viridisLite_0.4.2   rlang_1.1.3        
[46] Rcpp_1.0.12         xtable_1.8-4        glue_1.7.0         
[49] xml2_1.3.6          svglite_2.1.3       rstudioapi_0.16.0  
[52] R6_2.5.1            systemfonts_1.0.6   tables_0.9.25      
> 